﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(Manager))]
    [ProtoContract]
    public class ManagerDto
    {
        [ProtoMember(1)]
        public int id { get; set; }

        [ProtoMember(2)]
        public int role_id { get; set; }

        [ProtoMember(3)]
        public int role_type { get; set; }

        [ProtoMember(4)]
        public String user_name { get; set; }

        [ProtoMember(5)]
        public String password { get; set; }


        [ProtoMember(6)]
        public String salt { get; set; }

        [ProtoMember(7)]
        public String real_name { get; set; }

        [ProtoMember(8)]
        public String telephone { get; set; }

        [ProtoMember(9)]
        public String email { get; set; }

        [ProtoMember(10)]
        public int is_lock { get; set; }

        [ProtoMember(11)]
        public DateTime add_time { get; set; }
    }
}
